Extends CSSValue.
The SVGColor interface corresponds to color value definition for
properties ‘stop-color’, ‘flood-color’ and
‘lighting-color’ and is a base class for interface SVGPaint. It incorporates SVG's extended notion of color, which incorporates
ICC-based color specifications.
Operations |
void | - setColor(unsigned short colorType, DOMString rgbColor, DOMString iccColor)
- Sets the color value as specified by the parameters. If
colorType requires an RGBColor, then
rgbColor must be a string that matches
<color>;
otherwise, rgbColor. must be null. If colorType
requires an SVGICCColor, then iccColor must be a string
that matches <icccolor>;
otherwise, iccColor must be null.
|
void | - setRGBColor(DOMString rgbColor)
- Modifies the color value to be the specified sRGB color without an
alternate ICC color specification. ParametersDOMString rgbColor A string that matches <color>,
which specifies the new sRGB color value. ExceptionsSVGException, code SVG_INVALID_VALUE_ERR Raised if rgbColor
does not match <color>.
|
void | - setRGBColorICCColor(DOMString rgbColor, DOMString iccColor)
- Modifies the color value to be the specified sRGB color with an
alternate ICC color specification. ParametersDOMString rgbColor A string that matches <color>,
which specifies the new sRGB color value. DOMString iccColor A string that matches <icccolor>,
which specifies the alternate ICC color specification.
|